package com.dynamicallo.ty.service;

import java.util.List;

import com.dynamicallo.ty.entity.Action;

/**
 * 
 * @author wb
 * @date 2015-12-31 
 */
public interface IActionService {
    /**
     * @param action
     * @return
     */
    int addAction(Action action);
    /**
     * @param actionId
     * @return
     */
    Action getActionById(int actionId);
    /**
     * @param action
     * @return
     */
    int updateActionByIdOrOther(Action action);
    /**
     * @return
     */
    List<Action> getAllAction();
    /**
     * 依据contentId查找全部的action
     * @param contentId
     * @return
     */
    List<Action> getAllActionByContentId(Integer contentId);
}
